<style>
    .modal-content{
        width: 400px;
        border-radius: 10px;
        margin-top:calc(50% - 100px)
    }
    .color-blue{color:#00a0e9;border-bottom: 1px solid #00a0e9}

</style>
<section class="content">
    <h3>医生列表</h3>
    <div class="table-box">
        <table class="table table-bordered ">
            <tr>
                <th>序号</th>
                <th>医生姓名</th>
                <th>医院</th>
                <th>科室</th>
                <th>服务开通项</th>
                <th>执业点</th>
                <th>联系电话</th>
                <th>操作</th>
            </tr>
            <tr ng-repeat=" n in docList">
                <td>{{$index+1}}</td>
                <td>{{n.name}}</td>
                <td>{{n.hospital}}</td>
                <td>{{n.dept}}</td>
                <td  ng-click="setServer($event)" data-toggle="modal" data-target="#myModal" style="cursor: pointer" data-callOpen="{{n.doctorCallIsOpen}}" data-expertOpen="{{n.expertConsultationIsOpen}}"  data-call="{{n.doctorCallRowId}}" data-expert="{{n.expertConsultationRowId}}">
                    <span> {{(n.doctorCallIsOpen=='0'&& n.expertConsultationIsOpen=='0') ? '设置开通服务项' :''}}</span>
                    <span class="color-blue">{{ (n.doctorCallIsOpen=='1')? "电话咨询" : ""}}</span><br />
                    <span class="color-blue">{{ (n.expertConsultationIsOpen=='1')? "预约名医" : ""}}</span>
                </td>
                <td>{{n.addressNames}}</td>

                <td>{{n.phone}}</td>

                <td>
                    <span ng-if="n.doctorCallIsOpen=='1'">
                        <a href="javascript:;" ui-sref="doctorManage/doctorSetup({doctorId:{{n.doctorId}},doctorCallIsOpen:{{n.doctorCallIsOpen}},expertConsultationIsOpen:{{n.expertConsultationIsOpen}},doctorCallRowId:{{n.doctorCallRowId}},expertConsultationRowId:{{n.expertConsultationRowId}}})">电话设置</a> |
                    </span>
                    <span ng-if="n.doctorCallIsOpen=='0'">
                         <span>电话设置</span> |
                    </span>
                    <span ng-if="n.expertConsultationIsOpen=='1'">
                          <a href="javascript:;" ui-sref="doctorManage/doctorSetup({doctorId:{{n.doctorId}},doctorCallIsOpen:{{n.doctorCallIsOpen}},expertConsultationIsOpen:{{n.expertConsultationIsOpen}},doctorCallRowId:{{n.doctorCallRowId}},expertConsultationRowId:{{n.expertConsultationRowId}}})">排班设置</a>
                    </span>
                    <span ng-if="n.expertConsultationIsOpen=='0'">
                          <span>排班设置</span>
                    </span>

                </td>
            </tr>


        </table>
        <div class="text-center page-function"></div>
    </div>
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <h4 class="modal-title" id="myModalLabel">
                        服务开通项
                    </h4>
                </div>
                <div class="modal-body">
                  <table class="table table-striped table-bordered">
                      <tr>
                          <th>服务项目</th>
                          <th>是否开通</th>
                      </tr>
                      <tr>
                          <td>预约名医</td>
                          <td>

                              <select name="expertConsultationRowId">
                                  <option value="1">是</option>
                                  <option value="0">否</option>
                              </select>
                          </td>
                      </tr>
                      <tr>
                          <td>电话咨询</td>
                          <td>

                              <select name="doctorCallRowId">
                                  <option value="1">是</option>
                                  <option value="0">否</option>
                              </select>
                          </td>
                      </tr>
                  </table>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary" ng-click="commitTel()">确定</button>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal -->
    </div>
</section>
